package com.peace.hospital.entity.outpatientdept;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Date;

/**
 * <p>
 * 住院病人信息表
 * </p>
 *
 * @author 谢晓峰
 * @since 2019-11-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Inpatientmessage implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 住院id
     */
    @TableId(value = "inpid", type = IdType.AUTO)
    private Integer inpid;

    /**
     * 病床id
     */
    private Integer sckid;

    /**
     * 病人id
     */
    private Integer pid;

    /**
     * 入住日期
     */
    private Date inpadmdate;

    /**
     * 离开日期
     */
    private Date inpdischargedate;

    /**
     * 家庭住址
     */
    private String inpaddress;

    /**
     * 联系方式
     */
    private String inpcontact;

    /**
     * 担保人
     */
    private String inpcuarantee;

    /**
     * 出院结论
     */
    private String inpleavehos;

    /**
     * 押金
     */
    private BigDecimal inpdeposit;
    /**
     * 单价*/
    @TableField(exist = false)
    private Double inpatientmessageprice;
    /**住院时长*/
    @TableField(exist = false)
    private Integer timelength;
    /**
     * 数据库名
     */
    private String inpdbsource;

    public Integer getTimelength() {
        return timelength;
    }

    public void setTimelength(Integer timelength) {
        this.timelength = timelength;
    }

    public Double getInpatientmessageprice() {
        return inpatientmessageprice;
    }

    public void setInpatientmessageprice(Double inpatientmessageprice) {
        this.inpatientmessageprice = inpatientmessageprice;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getInpid() {
        return inpid;
    }

    public void setInpid(Integer inpid) {
        this.inpid = inpid;
    }

    public Integer getSckid() {
        return sckid;
    }

    public void setSckid(Integer sckid) {
        this.sckid = sckid;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public Date getInpadmdate() {
        return inpadmdate;
    }

    public void setInpadmdate(Date inpadmdate) {
        this.inpadmdate = inpadmdate;
    }

    public Date getInpdischargedate() {
        return inpdischargedate;
    }

    public void setInpdischargedate(Date inpdischargedate) {
        this.inpdischargedate = inpdischargedate;
    }

    public String getInpaddress() {
        return inpaddress;
    }

    public void setInpaddress(String inpaddress) {
        this.inpaddress = inpaddress;
    }

    public String getInpcontact() {
        return inpcontact;
    }

    public void setInpcontact(String inpcontact) {
        this.inpcontact = inpcontact;
    }

    public String getInpcuarantee() {
        return inpcuarantee;
    }

    public void setInpcuarantee(String inpcuarantee) {
        this.inpcuarantee = inpcuarantee;
    }

    public String getInpleavehos() {
        return inpleavehos;
    }

    public void setInpleavehos(String inpleavehos) {
        this.inpleavehos = inpleavehos;
    }

    public BigDecimal getInpdeposit() {
        return inpdeposit;
    }

    public void setInpdeposit(BigDecimal inpdeposit) {
        this.inpdeposit = inpdeposit;
    }

    public String getInpdbsource() {
        return inpdbsource;
    }

    public void setInpdbsource(String inpdbsource) {
        this.inpdbsource = inpdbsource;
    }
}
